TARGET:=boot.bin
SRC:=boot.asm
IMAGE:=boot.img

all:$(TARGET) image
$(TARGET):$(SRC)
	nasm -o$@ $^

.PHONY:all, clean

clean:
	rm -f $(TARGET) $(IMAGE)
image:$(TARGET)
	@bximage -fd -size=1.44 -q $(IMAGE)
	dd if=$(TARGET) of=$(IMAGE) bs=512 count=1 conv=notrunc
